package com.psjj.privilege.po;

import java.util.List;

public class User {
    /** 用户主键 */
    private Integer uid ;
    /** 用户名 */
    private String username ;
    /** 手机号 */
    private String phone ;
    /** 用户状态【1代表可用】【0代表禁用】 */
    private int status;
    private String pwd;
    private List<Role> roles;

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", status=" + status +
                ", pwd='" + pwd + '\'' +
                '}';
    }
}
